from google.appengine.ext import db

# List Model Class
class ListEntryModel(db.Model):
   # Title (string and mandatory)
   title = db.StringProperty(required=True)
   # List that Contains this Entry. The collection "entries" will be added
   #   as property to the referring ListModel, to make easier to retrieve
   #   the relative Entries.
   list = db.ReferenceProperty(ListModel, collection_name="entries")
   # If this Entry is Completed/Done, it's set to "True", otherwise "False"
   completed = db.BooleanProperty(default=False)
   # Order Position for this Entry respect to the other Entries
   order = db.IntegerProperty(required=True)